  /**
   * Generate time : 2012-07-05 5:44:26
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ct.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCTSmsTimely 
 *  
 */
public class ZMCTSmsTimely extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdModelId = " ";		/* 模板ID*/
	private String fdSqlId = " ";		/* SQL主键*/
	private String fdDate = " ";		/* 日期*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdModelId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("模板ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSqlId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("SQL主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDate");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("日期");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCTSmsTimely() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdModelId - 模板ID
	 * @return the fdModelId
	 */
	public String getFdModelId() {
		return this.fdModelId;
	}
	
	/**
	 * set the fdModelId - 模板ID
	 */
	public void setFdModelId(String fdModelId) {
		this.fdModelId = fdModelId;
	}
	
	/**
	 * get the fdSqlId - SQL主键
	 * @return the fdSqlId
	 */
	public String getFdSqlId() {
		return this.fdSqlId;
	}
	
	/**
	 * set the fdSqlId - SQL主键
	 */
	public void setFdSqlId(String fdSqlId) {
		this.fdSqlId = fdSqlId;
	}
	
	/**
	 * get the fdDate - 日期
	 * @return the fdDate
	 */
	public String getFdDate() {
		return this.fdDate;
	}
	
	/**
	 * set the fdDate - 日期
	 */
	public void setFdDate(String fdDate) {
		this.fdDate = fdDate;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdModelId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdModelId")), fdModelId));
		setFdSqlId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSqlId")), fdSqlId));
		setFdDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDate")), fdDate));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdModelId",StringUtils.toString(fdModelId, eiMetadata.getMeta("fdModelId")));	
			map.put("fdSqlId",StringUtils.toString(fdSqlId, eiMetadata.getMeta("fdSqlId")));	
			map.put("fdDate",StringUtils.toString(fdDate, eiMetadata.getMeta("fdDate")));	
			
		return map;
	
	}
}